compare and order fractions